package com.mvd.app.commons;

import android.util.Log;

/**
 * 调试打印信息�?  正式上线�? 把isTest = true改成isTest = false
 *
 */
public class UtilsLog {

	public static boolean isTest = true;
	public static final String TAG="tag";
	
	public static void d(String paramString2) {
		if (isTest)
			Log.d(TAG, paramString2);
	}
	public static void e(String paramString2) {
		if (isTest)
			Log.e(TAG, paramString2);
	}
	public static void d(String paramString1, String paramString2) {
		if (isTest)
			Log.d(paramString1, paramString2);
	}

	public static void e(String paramString1, String paramString2) {
		if (isTest)
			Log.e(paramString1, paramString2);
	}

	public static void i(String paramString1, String paramString2) {
		if (isTest)
			Log.i(paramString1, paramString2);
	}

//	public static void log(String paramString1, String paramString2) {
//		StackTraceElement[] arrayOfStackTraceElement = new Throwable()
//				.getStackTrace();
//		if (isTest) {
//			StackTraceElement localStackTraceElement = arrayOfStackTraceElement[1];
//			Object[] arrayOfObject = new Object[4];
//			arrayOfObject[0] = localStackTraceElement.getClassName();
//			arrayOfObject[1] = Integer.valueOf(localStackTraceElement
//					.getLineNumber());
//			arrayOfObject[2] = localStackTraceElement.getMethodName();
//			arrayOfObject[3] = paramString2;
//			Log.e(paramString1,
//					String.format("======[%s][%s][%s]=====%s", arrayOfObject));
//		}
//	}

	public static void w(String paramString1, String paramString2) {
		if (isTest)
			Log.w(paramString1, paramString2);
	}

	public static void w(String paramString1, String paramString2,
			Throwable paramThrowable) {
		if (isTest)
			Log.w(paramString1, paramString2, paramThrowable);
	}

	public static void w(String paramString, Throwable paramThrowable) {
		if (isTest)
			Log.w(paramString, paramThrowable);
	}
}
